import request from '@/utils/service';
// import axios from "axios"

export default{
    async getAll() {
        return await request({
            url: 'orders/orderList',
            method: 'get',
        })
    },
    async delete(_id){
        return await request({
            url: `orders/orderDel/${_id}`,
            method: 'DELETE',
        })
    },
    async add(data){
        return await request({
            url: `orders/orderAdd`,
            method: 'post',
            params:data
        })
    }
}
// export async function getAll() {
//     return await request({
//         url: "orders/orderList",
//         method:"get",
//     })

// }
